package cn.class2.demo5.main

import cn.class2.demo5.IEat

/**
  * Created by lzd on 2018/11/13.
  */
class Demo5 {

}
object Demo5{
  def main(args: Array[String]): Unit = {
    val d = new Demo5 with IEat {
      override def sleep(): Unit = {
        println("demo5 class sleep")
      }
    }

    d.eat()
    d.sleep()
  }
}
